<?php
/**
 *	Data Model Table of Comments.
 *	@package		tools.BugTracker
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			01.11.2005
 *	@version		1.0
 */
/**
 *	Data Model of Comments.
 *	@package		tools.BugTracker
 *	@extends		CMF_Krypton_Core_Model
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			01.11.2005
 *	@version		1.0
 */
final class Model_Comment extends CMF_Krypton_Core_Model
{
	/**
	 *	Constructor.
	 *	@access		public
	 *	@param		int			$commentId		ID of Comment
	 *	@return		void
	 */
	public function __construct( $commentId = NULL )
	{
		$tablename	= "comments";
		$fields	= array(
			"comment_id",
			"bug_id",
			"comment",
			"author",
			"status",
			"timestamp",
		);
		$primaryKey	= "comment_id";
		$indices	= array( "bug_id", "author", "status" );
		parent::__construct( $tablename, $fields, $primaryKey, $commentId );
		$this->setForeignKeys( $indices );
	}
}
?>